treeview: Fix prelight redraw when adjustment changes
authorAlexander Larsson <alexl@redhat.com>
Tue, 29 Apr 2014 07:08:31 +0000 (09:08 +0200)
committerAlexander Larsson <alexl@redhat.com>
Tue, 29 Apr 2014 07:12:02 +0000 (09:12 +0200)
commitc0a87a85f4acdab8690302ee5af5a220b1cce9d0
tree086acb65005b6f91c3b5e00be2c9c7428a8f6be4
parent6fb69a3e09e4d69b8a0a6cdb1215703265e515b4
treeview: Fix prelight redraw when adjustment changes

When the adjustment changes (due to e.g. a mouse wheel scroll) we update
the prelight. The part that un-prelights the previous prelight was
broken by the the pixel cache, as it called update_prelight in the
middle of the scrolling operation, where the windows were moved
but the tree_view->priv->dy was not changed to the new value. This
caused the updates to the pixel cache to go to the wrong place.

We fix this by fully doing the scroll before we update_prelight().

https://bugzilla.gnome.org/show_bug.cgi?id=728284
gtk/gtktreeview.c